*{
    box-sizing: border-box;
    z-index: 10;
}

html,body{
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 320px) {
    html,body{
        width: 320px;
        height: 100%;
    }
}

.index{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    .index-top{
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 999;
        &>img{
            width: 25%;
            max-height: 40px;
        }

        &>.top-input{
            width: 40%;
            height: 60%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            input{
                position: relative;
                width: 100%;
                height: 100%;
                border-radius: 20px;
                outline: none;
                background-color: #f3f3f3;
                padding: 10px 42px 10px 15px;
                border: none;
                // 这里可以做搜索框提示
                // &::before{
                //     content: '造梦西游';
                //     display: flex;
                //     position: absolute;
                //     width: max-content;
                //     height: 100%;
                //     left: 15px;
                //     align-items: center;
                //     justify-content: center;
                //     z-index: 999999;
                // }
            }
            div{
                position: absolute;
                width: 40px;
                height: 100%;
                top: 0;
                right: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 999999;
            }
        }

        .user{
            width: 36px;
            height: 36px;
            border: 1px solid gray;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    .to-top{
        position: fixed;
        bottom: 180px;
        right: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(79, 79, 79, 0.2);
        border-radius: 50%;
        font-size: 12px;
        text-decoration: none;
        z-index: 999999;
        color: white;
    }

    .content-nav{
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        justify-content: space-around;
        &>div{
            display: block;
            padding: 1% 2.5% 2% 2.5%;
            font-size: 20px;
            text-decoration: none;
            color: black;
        }
    }

    .content{
        width: 100%;
        &>.recommend{
            position: relative;
            width: 100%;
            &>img{
                width: 100%;
                // max-height: 600px;
            }

            &>.red{
                position: absolute;
                top: 8%;
                left: 2%;
                color: white;
                padding: 1.8%;
                background-color: rgb(255, 0, 0);
                border-radius: 20px;
                border-bottom-left-radius: 0;
            }

            &>.introduce{
                width: 100%;
                position: absolute;
                top: 60%;
                color: white;
                padding: 20% 0 8% 0;
                background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, .3), rgba(0, 0, 0, .3), white, white);
                &>div{
                    position: absolute;
                    top: 4%;
                    h1{
                        padding-left: 10px;
                        font-size: 3.5vw;
                        font-weight: 900;
                    }
                    span{
                        padding-left: 10px;
                        font-size: 2.5vw;
                    }
                }
            }
        }

        &>.game{
            position: relative;
            width: 94%;
            z-index: 11;
            margin: -15% auto 0 auto;
            border-radius: 10px;
            background-color: #fff;
            &>.game-nav{
                width: 100%;
                margin-bottom: 8%;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-around;
                padding: 4% 0 0 0;
                &>.img{
                    width: 19%;
                    margin-right: 1%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: space-between;
                    &:nth-child(1),
                    &:nth-child(2),
                    &:nth-child(3),
                    &:nth-child(4),
                    &:nth-child(5){
                        margin-bottom: 2%;
                    }
                    
                    &:nth-child(5),
                    &:nth-last-child(1){
                        margin-right: 0;
                    }
                    &>img{
                        width: 60%;
                        margin-bottom: 3%;
                    }
                    &>div{
                        font-size: 2vw;
                    }
                }
            }

            &>.recently{
                width: 100%;
                margin-bottom: 10%;
                padding: 1% 2%;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                box-shadow: 0 0 10px 10px #f7f6f6;
                border-radius: 10px;
                &>div{
                    &:nth-child(1){
                        width: 3%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        div{
                            font-size: 3vw;
                            font-weight: 900;
                        }
                    }

                    &:nth-child(2){
                        width: 92%;
                        height: 100%;
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        justify-content: flex-start;
                        overflow-x: auto;
                        .img{
                            width: 18%;
                            display: flex;
                            flex-direction: column;
                            justify-content: flex-start;
                            align-items: center;
                            height: 100%;
                            margin-right: 4%;
                            img{
                                width: 100%;
                                border-radius: 8px;
                            }
                            div{
                                font-size: 3vw;
                            }
                        }
                    }
                }
            }

            .game-list{
                position: relative;
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding: 1%;
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;
                background-color: #fff;
                z-index: 11;
                &>div{
                    width: 100%;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: space-between;
                    padding: 2% 0;
                    &>div{
                        &:nth-child(1){
                            width: 60%;
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            justify-content: flex-start;
                            img{
                                width: 30%;
                                border-radius: 10px;
                                margin-right: 3%;
                            }
                            div{
                                margin-top: 2%;
                                align-self: flex-start;
                                &>div:nth-child(1){
                                    font-size: 5vw;
                                }
                                &>div:nth-child(2){
                                    
                                    font-size: 3vw;
                                }
                            }
                        }
                        &:nth-child(2){
                            font-size: 3vw;
                            padding: 2% 4%;
                            border: 1px solid #00cc7d;
                            color: #00cc7d;
                            border-radius: 5px;
                        }
                    }
                }
            }

            .game-two{
                width: 100%;
                margin-top: 10%;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;
                overflow: hidden;
                &>.img{
                    position: relative;
                    width: 100%;
                    margin-bottom: -5%;
                    img{
                        width: 100%;
                    }
                    div{
                        position: absolute;
                        z-index: 11;
                        top: 0;
                        left: 0;
                        padding: 1% 2%;
                        font-size: 1.5vw;
                        color: white;
                        background-color: #00cc7d;
                        border-top-right-radius: 10px;
                        border-bottom-right-radius: 10px;
                    }
                }
            }

            .pc{
                width: 100%;
                margin-top: 8%;
                margin-bottom: 8%;
                &>div{
                    &:nth-child(1){
                        width: 100%;
                        margin-bottom: 4%;
                        h1{
                            font-weight: 900;
                            font-size: 4vw;
                        }
                    }

                    &:nth-child(2){
                        width: 100%;
                        display: flex;
                        flex-wrap: wrap;
                        flex-direction: row;
                        align-items: center;
                        justify-content: center;
                        img{
                            width: 42.5%;
                            &:nth-child(2n+1){
                                margin-right: 5%;
                            }
                            &:nth-child(2n){
                                margin-left: 5%;
                            }
                            &:nth-child(1),
                            &:nth-child(2){
                                margin-bottom: 3%;
                            }
                        }
                    }
                }
            }


        }
    }
}

.con-nav-click{
    position: relative;
    &::before{
        content: '';
        position: absolute;
        border-radius: 10px;
        width: 40%;
        height: 15%;
        bottom: 10%;
        left: 30%;
        background-color: greenyellow;
    }
}

.con-nav-default{
    cursor: pointer;
}

@media screen and (max-width: 500px) {
    .index{
        .content{
            .recommend{
                &>.red{
                    padding: 10px;
                    transform-origin: center center;
                    transform: scale(.7);
                }

                &>.introduce{
                    &>div{
                        h1{
                            font-size: 3.6vw;
                        }
                        p{
                            font-size: 2.5vw;
                        }
                    }
                }
            }
        }
    }
}